<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<Universum.Model.Domain.Classes.Class>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - Create class
</asp:Content>
<asp:Content ContentPlaceHolderID="Breadcrumbs" ID="BreadcrumbsContent" runat="server">
	<%=Html.Breadcrumb().Home().Append<ClassesController>(c=>c.Index(),"Your classes").AppendText("Create class").End() %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% Html.RenderPartial("_BackToIndex"); %>
    <h2>CreateClass</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

      <% using (Html.BeginForm<ClassesController>(controller=>controller.CreateClass(null))){%>

        <fieldset>
            <legend>New class</legend>
            <p>
            <%= this.TextBox( model => model.Name).Label("Name") %>
               
                <%= this.ValidationMessage( model => model.Name, "*") %>
            </p>
            <p>
            <%= this.TextArea( model => model.Description).Label("Description") %>
               
                <%= this.ValidationMessage( model => model.Description, "*") %>
            </p>
            <p>
            <%= this.CheckBox(model=> model.IsActive).Label("Active? ") %>
            </p>
            <p>
               <%=this.SubmitButton("Create")%>
            </p>
        </fieldset>

    <% } %>
   

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
<% Html.RenderPartial("EditorAndDateUserControl"); %>
</asp:Content>

